<?php
/**
 * 管理后台首页
 * @file		IndexControl.class.php
 * @author     	kelecode@gmail.com
 * @date       	2013-01-10
 * modify
 */
class IndexControl extends Control{

	public function __construct(){
		parent::__construct();

		$css = APP_ROOT . '/template/' . C('theme') . '/common/css.php';
		$script =  APP_ROOT . '/template/' . C('theme') . '/common/js.php';
		$this->assign('css',$css);
		$this->assign('script',$script);
	}

	public function index(){
		$siteInfo = M('Siteinfo')->getSiteInfo();
		$main = APP_ROOT . '/template/' . C('theme') . '/index/index.php';
		
		$this->assign('main',$main);
		$this->assign('title','Home');
		$this->assign('siteInfo',$siteInfo);
		$this->display('layout','common');
	}
	
}